package kz.pompei.ifacer.main.toolbar;

import java.util.List;

import javax.swing.JButton;
import javax.swing.JToolBar;
import javax.swing.SwingConstants;

import kz.pompei.ifacer.main.AbstractAction1;

public class AdditionToolBar {
  public final JToolBar source = new JToolBar("AdditionToolBar", SwingConstants.VERTICAL);
  
  public AdditionToolBar(List<AbstractAction1> additionActions) {
    for (AbstractAction1 act : additionActions) {
      JButton b = new JButton(act);
      b.setText(act.name());
      source.add(b);
    }
  }
}
